﻿<UserControl x:Class="eventr.View.FlyThroughUrlPopup"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="352" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Grid x:Name="LayoutRoot" Background="{x:Null}" RenderTransformOrigin="0.5,1">
    	<Grid.RenderTransform>
    		<TransformGroup>
    			<ScaleTransform ScaleX="0" ScaleY="0"/>
    			<SkewTransform/>
    			<RotateTransform/>
    			<TranslateTransform/>
    		</TransformGroup>
    	</Grid.RenderTransform>

    	<vsm:VisualStateManager.VisualStateGroups>
    		<vsm:VisualStateGroup x:Name="Visibility">
    			<vsm:VisualState x:Name="Visible">
    				<Storyboard>
    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
    						<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.1" KeySpline="0,0,0,1"/>
    						<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
    					</DoubleAnimationUsingKeyFrames>
    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
    						<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.1" KeySpline="0,0,0,1"/>
    						<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
    					</DoubleAnimationUsingKeyFrames>
    				</Storyboard>
    			</vsm:VisualState>
    			<vsm:VisualState x:Name="Invisible">
    				<Storyboard>
    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
    						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.1"/>
    						<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" KeySpline="1,0,1,1"/>
    					</DoubleAnimationUsingKeyFrames>
    					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
    						<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.1"/>
    						<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0" KeySpline="1,0,1,1"/>
    					</DoubleAnimationUsingKeyFrames>
    				</Storyboard>
    			</vsm:VisualState>
    		</vsm:VisualStateGroup>
    	</vsm:VisualStateManager.VisualStateGroups>
    	<Border HorizontalAlignment="Stretch" Margin="0,0,0,0" Width="Auto" BorderBrush="#FF8A8A8A" BorderThickness="2,2,2,2" CornerRadius="15,15,15,15">
    		<Border.Background>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FF747474"/>
    				<GradientStop Color="#FF222222" Offset="1"/>
    			</LinearGradientBrush>
    		</Border.Background>
    	</Border>
    	<TextBlock Margin="22,19,18,0" FontFamily="Georgia" FontSize="22" Foreground="#FFFFFFFF" Text="Send your Fly Through to a friend" TextWrapping="Wrap" Height="60" VerticalAlignment="Top"/>
    	<TextBlock Margin="22,47,18,0" FontFamily="Georgia" FontSize="14" Foreground="#FFFFFFFF" Text="Copy the URL below and send it to your friend to guide them through your selection of images" TextWrapping="Wrap" d:LayoutOverrides="Height" VerticalAlignment="Top"/>
    	<Button x:Name="btnClose" BorderBrush="#FF424242" Margin="0,0,8,8" Style="{StaticResource NiceButton}" BorderThickness="2,2,2,2" Foreground="#FFFFFFFF" Content="Close" Click="Close_Click" Height="51" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="89">
    		<Button.Background>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FF01C400"/>
    				<GradientStop Color="#FF007B00" Offset="1"/>
    				<GradientStop Color="#FE005C00" Offset="0.612"/>
    				<GradientStop Color="#FE005C00" Offset="0.741"/>
    			</LinearGradientBrush>
    		</Button.Background>
    	</Button>
    	<TextBox Margin="22,100,112,107" Text="{Binding FlyThroughHash}" TextWrapping="Wrap" Background="#FF7C7C7C" Foreground="#FFFFFFFF" x:Name="txtUrl" GotFocus="txtUrl_GotFocus">
    		<TextBox.BorderBrush>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FFA3AEB9"/>
    				<GradientStop Color="#FF8399A9" Offset="0.375"/>
    				<GradientStop Color="#FF718597" Offset="0.375"/>
    				<GradientStop Color="#FF525252" Offset="1"/>
    			</LinearGradientBrush>
    		</TextBox.BorderBrush>
    	</TextBox>
    	<TextBox Margin="22,0,112,18" Text="{Binding CurrentImageHash}" TextWrapping="Wrap" Background="#FF7C7C7C" Foreground="#FFFFFFFF" x:Name="txtThisURLOnly" GotFocus="txtThisURLOnly_GotFocus" VerticalAlignment="Bottom" Height="33">
    		<TextBox.BorderBrush>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FFA3AEB9"/>
    				<GradientStop Color="#FF8399A9" Offset="0.375"/>
    				<GradientStop Color="#FF718597" Offset="0.375"/>
    				<GradientStop Color="#FF525252" Offset="1"/>
    			</LinearGradientBrush>
    		</TextBox.BorderBrush>
    	</TextBox>
    	<TextBlock Margin="22,0,18,60" FontFamily="Georgia" FontSize="14" Foreground="#FFFFFFFF" Text="Copy the URL below to guide your friend to the current image" TextWrapping="Wrap" VerticalAlignment="Bottom" d:LayoutOverrides="Height"/>

    </Grid>
</UserControl>
